body {
    color: #000;
    margin: 0;
    padding: 0;
    height: auto;
}

/* Background animation begin */
.wallpaper {
    position: absolute;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgb(1, 0, 41) 0%, rgb(37, 58, 121) 35%, rgb(99, 194, 232) 100%);
}
.box div {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 6px solid rgba(255, 255, 255, 0.8);
}
.box div:nth-child(1) {
    top: 12%;
    left: 72%;
    animation: animate 11s linear infinite;
}
.box div:nth-child(2) {
    top: 75%;
    left: 92%;
    animation: animate 9s linear infinite;
}
.box div:nth-child(3) {
    top: 17%;
    left: 6%;
    animation: animate 9s linear infinite;
}
.box div:nth-child(4) {
    top: 35%;
    left: 85%;
    animation: animate 10s linear infinite;
}
.box div:nth-child(5) {
    top: 67%;
    left: 15%;
    animation: animate 13s linear infinite;
}
.box div:nth-child(6) {
    top: 88%;
    left: 87%;
    animation: animate 15s linear infinite;
}
.box div:nth-child(7) {
    top: 60%;
    left: 80%;
    animation: animate 15s linear infinite;
}
.box div:nth-child(8) {
    top: 32%;
    left: 20%;
    animation: animate 16s linear infinite;
}
.box div:nth-child(9) {
    top: 90%;
    left: 25%;
    animation: animate 12s linear infinite;
}
.box div:nth-child(10) {
    top: 20%;
    left: 80%;
    animation: animate 5s linear infinite;
}
.box div:nth-child(11) {
    top: 1%;
    left: 2%;
    animation: animate 7s linear infinite;
}
.box div:nth-child(12) {
    top: 6%;
    left: 90%;
    animation: animate 15s linear infinite;
}
.box div:nth-child(13) {
    top: 50%;
    left: 5%;
    animation: animate 9s linear infinite;
}
.box div:nth-child(14) {
    top: 50%;
    left: 95%;
    animation: animate 11s linear infinite;
}
.box div:nth-child(15) {
    top: 83%;
    left: 9.5%;
    animation: animate 9s linear infinite;
}
.box div:nth-child(16) {
    top: 97%;
    left: 25%;
    animation: animate 16s linear infinite;
}
.box div:nth-child(17) {
    top: 99%;
    left: 90%;
    animation: animate 6s linear infinite;
}
@keyframes animate {
    0% {
        transform: scale(0) translateY(0) rotate(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.3) translateY(-90px) rotate(360deg);
        opacity: 0;
    }
}
/* Background animation CSS end */

.computerhead {
    margin-left: 10%;
    margin-right: 10%;
    background-color: rgba(133, 151, 166, 0.5);
    border-radius: 10px;
    padding-bottom: 5px;
}

.pagetitle {
    padding-left: 10px;
    text-align: center;
    color: azure;
}
.pagetitle h2 {
    font-size: 50px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-bottom: 10px;
    text-shadow: 2px 4px 5px rgba(0, 0, 0, 0.5);
}
.discription {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}
.discription p {
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: aliceblue;
}
.digreeunies {
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 10px;
    font-size: 25px;
    background-color: rgba(133, 151, 166, 0.5);
    border-radius: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
}
.digreeunies a {
    text-decoration: none;
    color: rgb(3, 0, 91);
}
.digreeunies a:hover {
    text-decoration: underline;
}

/* Responsive Design for Mobile */
@media (max-width: 798px) {
    body {
        font-size: 14px;
    }
    .wallpaper {
        background: linear-gradient(90deg, rgb(1, 0, 41) 0%, rgb(37, 58, 121) 50%, rgb(99, 194, 232) 100%);
        background-size: cover;
    }
    .computerhead {
        margin-left: 5%;
        margin-right: 5%;
        padding: 10px;
    }
    .pagetitle h2 {
        font-size: 30px;
    }
    .discription p {
        font-size: 15px;
        padding: 10px;
    }
    .digreeunies {
        margin-left: 5%;
        margin-right: 5%;
        font-size: 20px;
        padding: 10px;
    }
    .box div {
        width: 30px;
        height: 30px;
    }
}
@media screen and (max-width: 498px) {
    nav {
        padding: 10px 15px; /* Adjust padding for smaller screens */
    }

    nav ul {
        flex-direction: column;  /* Stack the navbar items vertically */
        align-items: center;  /* Center align the navbar items */
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 8px 0;  /* Space between navbar items */
    }

    nav ul li a {
        font-size: 16px;  /* Increase font size for better readability */
        width: 100%;  /* Make each link take the full width */
        text-align: center;  /* Center the text inside the link */
        padding: 12px;  /* Add padding for easy clicking */
    }
}